package com.xbongbong.saas.domain.entity;


import com.xbongbong.paas.toolbox.util.DateTimeUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/1/25 10:12
 * @since v1.0
 */
@Getter
@Setter
@ToString
//@Document(indexName = "idx_saas_customer_team",  type = "my_team")
public class CustomerUserEntity extends UserTeamEntity {

    private static final long serialVersionUID = 2667253548065448419L;

    //corpid_customerId
//    @Parent(type = "saas_customer")
    private String parentId;
    /**
     * 分配时间
     */
    private Long distributionTime;
    /**
     * 退回公海时间
     */
    private Long backTime;
    /**
     * 职位
     */
    private String position;

    public CustomerUserEntity() {
        long now = DateTimeUtil.getInt();
        this.backTime=0L;
        this.distributionTime = now;
    }
}
